<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>小米信息技术部技术精选</title>
    <link rel="stylesheet" href="https://cdn.staticfile.org/font-awesome/6.4.0/css/all.min.css">
    <link rel="stylesheet" href="https://cdn.staticfile.org/tailwindcss/2.2.19/tailwind.min.css">
    <link href="https://fonts.googleapis.com/css2?family=Noto+Serif+SC:wght@400;500;600;700&family=NotoSans+SC:wght@300;400;500;700&display=swap" rel="stylesheet">
    <script src="https://cdn.jsdelivr.net/npm/mermaid@latest/dist/mermaid.min.js"></script>
    <style>
        body {
            font-family: 'Noto Sans SC', Tahoma, Arial, Roboto, "Droid Sans", "Helvetica Neue", "Droid Sans Fallback", "Heiti SC", "Hiragino Sans GB", Simsun, sans-serif;
            color: #3f3f46;
            line-height: 1.6;
        }
        h1, h2, h3, h4 {
            font-family: 'Noto Serif SC', serif;
        }
        .hero-gradient {
            background: linear-gradient(135deg, #f5f5f7 0%, #e1e1e6 100%);
        }
        .card-hover {
            transition: all 0.3s ease;
        }
        .card-hover:hover {
            transform: translateY(-5px);
            box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
        }
        .link-underline {
            position: relative;
        }
        .link-underline:after {
            content: '';
            position: absolute;
            width: 0;
            height: 2px;
            bottom: -2px;
            left: 0;
            background-color: #2563eb;
            transition: width 0.3s ease;
        }
        .link-underline:hover:after {
            width: 100%;
        }
        .drop-cap:first-letter {
            float: left;
            font-size: 4em;
            line-height: 0.9;
            margin: 0.15em 0.1em 0 0;
            color: #2563eb;
            font-family: 'Noto Serif SC', serif;
            font-weight: 700;
        }
    </style>
</head>
<body class="bg-gray-50">
    <!-- Hero Section -->
    <section class="hero-gradient py-24 px-4 sm:px-6 lg:px-8">
        <div class="max-w-6xl mx-auto text-center">
            <div class="flex justify-center mb-6">
                <div class="bg-white rounded-full p-3 shadow-lg">
                    <img src="https://xiaomi-info.github.io/favicon.ico" alt="小米Logo" class="w-16 h-16">
                </div>
            </div>
            <h1 class="text-4xl md:text-5xl lg:text-6xl font-bold text-gray-900 mb-6 leading-tight">
                小米信息技术部<br>技术精选集
            </h1>
            <p class="text-xl md:text-2xl text-gray-600 max-w-3xl mx-auto mb-10">
                专家团队分享的技术洞见与实践经验
            </p>
            <div class="flex justify-center">
                <a href="#articles" class="bg-blue-600 hover:bg-blue-700 text-white font-medium py-3 px-8 rounded-full transition duration-300 transform hover:scale-105 shadow-lg">
                    探索文章 <i class="fas fa-arrow-down ml-2"></i>
                </a>
            </div>
        </div>
    </section>

    <!-- Content Section -->
    <section id="articles" class="py-16 px-4 sm:px-6 lg:px-8">
        <div class="max-w-6xl mx-auto">
            <div class="text-center mb-16">
                <h2 class="text-3xl md:text-4xl font-bold text-gray-900 mb-4">精选技术文章</h2>
                <p class="text-gray-600 max-w-2xl mx-auto">
                    我们团队专家分享了在多个技术领域的实践经验和深入见解
                </p>
            </div>

            <!-- Articles Grid -->
            <div class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-8">
                <!-- Article Card 1 -->
                <div class="bg-white rounded-xl overflow-hidden shadow-md card-hover">
                    <div class="p-6">
                        <div class="flex items-center mb-4">
                            <div class="bg-blue-100 text-blue-600 p-2 rounded-lg">
                                <i class="fas fa-chart-line text-xl"></i>
                            </div>
                            <span class="ml-3 text-sm font-medium text-gray-500">统计建模</span>
                        </div>
                        <h3 class="text-xl font-bold text-gray-900 mb-2">统计建模的实践应用</h3>
                        <p class="text-gray-600 mb-4">探讨统计建模在实际业务场景中的应用方法和最佳实践</p>
                        <a href="#" class="text-blue-600 font-medium link-underline">阅读全文 <i class="fas fa-arrow-right ml-1"></i></a>
                    </div>
                </div>

                <!-- Article Card 2 -->
                <div class="bg-white rounded-xl overflow-hidden shadow-md card-hover">
                    <div class="p-6">
                        <div class="flex items-center mb-4">
                            <div class="bg-purple-100 text-purple-600 p-2 rounded-lg">
                                <i class="fas fa-code-branch text-xl"></i>
                            </div>
                            <span class="ml-3 text-sm font-medium text-gray-500">微前端</span>
                        </div>
                        <h3 class="text-xl font-bold text-gray-900 mb-2">微前端架构实践</h3>
                        <p class="text-gray-600 mb-4">分享大规模前端应用中使用微前端架构的经验与解决方案</p>
                        <a href="#" class="text-blue-600 font-medium link-underline">阅读全文 <i class="fas fa-arrow-right ml-1"></i></a>
                    </div>
                </div>

                <!-- Article Card 3 -->
                <div class="bg-white rounded-xl overflow-hidden shadow-md card-hover">
                    <div class="p-6">
                        <div class="flex items-center mb-4">
                            <div class="bg-green-100 text-green-600 p-2 rounded-lg">
                                <i class="fas fa-shapes text-xl"></i>
                            </div>
                            <span class="ml-3 text-sm font-medium text-gray-500">设计模式</span>
                        </div>
                        <h3 class="text-xl font-bold text-gray-900 mb-2">现代设计模式应用</h3>
                        <p class="text-gray-600 mb-4">深入探讨常见设计模式在复杂系统中的应用场景</p>
                        <a href="#" class="text-blue-600 font-medium link-underline">阅读全文 <i class="fas fa-arrow-right ml-1"></i></a>
                    </div>
                </div>

                <!-- Article Card 4 -->
                <div class="bg-white rounded-xl overflow-hidden shadow-md card-hover">
                    <div class="p-6">
                        <div class="flex items-center mb-4">
                            <div class="bg-yellow-100 text-yellow-600 p-2 rounded-lg">
                                <i class="fas fa-lock text-xl"></i>
                            </div>
                            <span class="ml-3 text-sm font-medium text-gray-500">同步锁</span>
                        </div>
                        <h3 class="text-xl font-bold text-gray-900 mb-2">同步锁原理解析</h3>
                        <p class="text-gray-600 mb-4">剖析多线程环境下同步锁的工作原理与性能优化</p>
                        <a href="#" class="text-blue-600 font-medium link-underline">阅读全文 <i class="fas fa-arrow-right ml-1"></i></a>
                    </div>
                </div>

                <!-- Article Card 5 -->
                <div class="bg-white rounded-xl overflow-hidden shadow-md card-hover">
                    <div class="p-6">
                        <div class="flex items-center mb-4">
                            <div class="bg-red-100 text-red-600 p-2 rounded-lg">
                                <i class="fab fa-java text-xl"></i>
                            </div>
                            <span class="ml-3 text-sm font-medium text-gray-500">Java</span>
                        </div>
                        <h3 class="text-xl font-bold text-gray-900 mb-2">Java内省机制详解</h3>
                        <p class="text-gray-600 mb-4">探索Java反射机制在实际开发中的高级应用</p>
                        <a href="#" class="text-blue-600 font-medium link-underline">阅读全文 <i class="fas fa-arrow-right ml-1"></i></a>
                    </div>
                </div>

                <!-- Article Card 6 -->
                <div class="bg-white rounded-xl overflow-hidden shadow-md card-hover">
                    <div class="p-6">
                        <div class="flex items-center mb-4">
                            <div class="bg-indigo-100 text-indigo-600 p-2 rounded-lg">
                                <i class="fas fa-network-wired text-xl"></i>
                            </div>
                            <span class="ml-3 text-sm font-medium text-gray-500">RPC</span>
                        </div>
                        <h3 class="text-xl font-bold text-gray-900 mb-2">RPC实现原理剖析</h3>
                        <p class="text-gray-600 mb-4">深入解读远程过程调用的核心机制与实现细节</p>
                        <a href="#" class="text-blue-600 font-medium link-underline">阅读全文 <i class="fas fa-arrow-right ml-1"></i></a>
                    </div>
                </div>
            </div>
        </div>
    </section>

    <!-- Featured Article -->
    <section class="py-16 px-4 sm:px-6 lg:px-8 bg-gray-100">
        <div class="max-w-6xl mx-auto">
            <div class="bg-white rounded-xl shadow-lg overflow-hidden">
                <div class="md:flex">
                    <div class="md:w-1/2 p-8 md:p-12">
                        <div class="flex items-center mb-6">
                            <div class="bg-blue-600 text-white p-3 rounded-lg">
                                <i class="fas fa-star text-xl"></i>
                            </div>
                            <span class="ml-4 text-sm font-medium text-blue-600 uppercase tracking-wider">特色文章</span>
                        </div>
                        <h2 class="text-2xl md:text-3xl font-bold text-gray-900 mb-6">分布式事务的挑战与解决方案</h2>
                        <div class="drop-cap text-gray-700 mb-6">
                            在微服务架构日益普及的今天，分布式事务处理成为系统设计中的重要挑战。本文将深入探讨分布式事务的核心问题，分析常见解决方案如2PC、TCC、SAGA等的优缺点，并分享小米在实际业务场景中的最佳实践。
                        </div>
                        <a href="#" class="inline-flex items-center text-blue-600 font-medium link-underline">
                            阅读完整文章 <i class="fas fa-arrow-right ml-2"></i>
                        </a>
                    </div>
                    <div class="md:w-1/2 bg-gray-50 flex items-center justify-center p-8">
                        <div class="w-full">
                            <div class="mermaid">
                                graph LR
                                A[客户端] --> B[服务A]
                                A --> C[服务B]
                                B --> D[数据库A]
                                C --> E[数据库B]
                                B -->|TCC Try| C
                                C -->|TCC Confirm| B
                                style A fill:#f5f5f7,stroke:#333
                                style B fill:#dbeafe,stroke:#2563eb
                                style C fill:#dbeafe,stroke:#2563eb
                                style D fill:#e5e7eb,stroke:#6b7280
                                style E fill:#e5e7eb,stroke:#6b7280
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </section>

    <!-- Additional Articles -->
    <section class="py-16 px-4 sm:px-6 lg:px-8">
        <div class="max-w-6xl mx-auto">
            <div class="grid grid-cols-1 md:grid-cols-2 gap-12">
                <!-- Left Column -->
                <div>
                    <div class="mb-12">
                        <h3 class="text-2xl font-bold text-gray-900 mb-6 flex items-center">
                            <i class="fas fa-bug text-blue-600 mr-3"></i> Go语言错误处理模式
                        </h3>
                        <p class="text-gray-700 mb-4">
                            Go语言的错误处理机制与其他语言有显著不同。本文将详细介绍Go的错误处理哲学，分析error接口的设计原理，并探讨在实际项目中如何构建健壮的错误处理策略。
                        </p>
                        <ul class="list-disc pl-5 text-gray-700 space-y-2 mb-6">
                            <li>错误处理的基本模式</li>
                            <li>错误包装与解包技巧</li>
                            <li>错误处理最佳实践</li>
                        </ul>
                        <a href="#" class="text-blue-600 font-medium link-underline inline-flex items-center">
                            了解更多 <i class="fas fa-arrow-right ml-1"></i>
                        </a>
                    </div>

                    <div class="bg-white p-6 rounded-lg shadow-md">
                        <h3 class="text-xl font-bold text-gray-900 mb-4 flex items-center">
                            <i class="fas fa-pen-fancy text-purple-600 mr-3"></i> 投稿须知
                        </h3>
                        <p class="text-gray-700 mb-4">
                            我们欢迎技术团队成员的投稿，分享您的技术见解和实践经验。请确保您的文章具有以下特点：
                        </p>
                        <div class="space-y-3">
                            <div class="flex items-start">
                                <i class="fas fa-check-circle text-green-500 mt-1 mr-2"></i>
                                <span class="text-gray-700">原创内容，未在其他平台发表</span>
                            </div>
                            <div class="flex items-start">
                                <i class="fas fa-check-circle text-green-500 mt-1 mr-2"></i>
                                <span class="text-gray-700">技术深度与实践经验结合</span>
                            </div>
                            <div class="flex items-start">
                                <i class="fas fa-check-circle text-green-500 mt-1 mr-2"></i>
                                <span class="text-gray-700">结构清晰，代码示例完整</span>
                            </div>
                        </div>
                    </div>
                </div>

                <!-- Right Column -->
                <div>
                    <div class="mb-12">
                        <h3 class="text-2xl font-bold text-gray-900 mb-6 flex items-center">
                            <i class="fab fa-react text-blue-400 mr-3"></i> React Native版本检查机制
                        </h3>
                        <p class="text-gray-700 mb-4">
                            在混合开发模式下，如何确保用户始终使用最新版本的React Native组件？本文将详细介绍小米在实践中建立的版本检查机制，包括：
                        </p>
                        <div class="bg-gray-50 p-4 rounded-lg mb-4">
                            <div class="font-mono text-sm text-gray-800">
                                <div class="mb-2">// 版本检查流程示例</div>
                                <div>1. 客户端启动时请求版本服务</div>
                                <div>2. 比较本地与最新版本号</div>
                                <div>3. 需要更新时下载差分包</div>
                                <div>4. 静默更新或提示用户</div>
                            </div>
                        </div>
                        <p class="text-gray-700">
                            这一机制显著提升了应用更新的效率和用户体验，同时降低了维护成本。
                        </p>
                    </div>

                    <div class="bg-blue-50 p-6 rounded-lg border border-blue-100">
                        <h3 class="text-xl font-bold text-gray-900 mb-3">访问完整技术博客</h3>
                        <p class="text-gray-700 mb-4">
                            想了解更多技术细节和完整文章？访问小米信息部技术团队的官方博客，获取更多精彩内容。
                        </p>
                        <a href="https://xiaomi-info.github.io/" target="_blank" class="inline-flex items-center bg-blue-600 hover:bg-blue-700 text-white font-medium py-2 px-4 rounded transition duration-300">
                            前往博客 <i class="fas fa-external-link-alt ml-2"></i>
                        </a>
                    </div>
                </div>
            </div>
        </div>
    </section>

    <!-- Footer -->
    <footer class="bg-gray-900 text-white py-12 px-4 sm:px-6 lg:px-8">
        <div class="max-w-6xl mx-auto">
            <div class="text-center">
                <h3 class="text-xl font-bold mb-4">技术小馆</h3>
                <p class="text-gray-400 mb-6">分享技术，传递价值</p>
                <div class="flex justify-center space-x-4">
                    <a href="http://www.yuque.com/jtostring" target="_blank" class="text-gray-400 hover:text-white transition duration-300">
                        <i class="fas fa-globe text-xl"></i>
                    </a>
                </div>
                <div class="mt-6 text-gray-500 text-sm">
                    <a href="http://www.yuque.com/jtostring" target="_blank" class="hover:text-gray-300 transition duration-300">http://www.yuque.com/jtostring</a>
                </div>
            </div>
        </div>
    </footer>

    <script>
        mermaid.initialize({
            startOnLoad: true,
            theme: 'default',
            flowchart: {
                useMaxWidth: true,
                htmlLabels: true,
                curve: 'basis'
            }
        });
    </script>
</body>
</html>